<?php

/**
 * This is the control file.
 * It acts as the medium between the viewContact.php file,
 * and the dbContact.php file.
 *
 * @version 22 March 2011
 * @author Aaron Jarzombek
 * @author Brice Rader
 */
class Organization {

    //these private variables are only accessible in this class,
    //we have to use functions or other methods to use them
    private $organizationID;
    private $organizationName;
    private $description;
    private $address;
    private $address1;
    private $city;
    private $state;
    private $zip;

    function __construct($t, $u, $v, $w, $x, $y, $z) {
        $this->organizationID = null;
        $this->organizationName = $t;
        $this->description = $u;
        $this->address = $v;
        $this->address1 = $w;
        $this->city = $x;
        $this->state = $y;
        $this->zip = $z;
    }

    function setOrganizationID($organizationID) {
        $this->organizationID = $organizationID;
    }

    function setOrganizationName($organizationName) {
        $this->organizationName = $organizationName;
    }

    function setDescription($description) {
        $this->description = $description;
    }

    function setAddress($address) {
        $this->address = $address;
    }

    function setAddress1($address1) {
        $this->address1 = $address1;
    }

    function setCity($city) {
        $this->city = $city;
    }

    function setState($state) {
        $this->state = $state;
    }

    function setZip($zip) {
        $this->zip = $zip;
    }

    function getOrganizationID() {
        return $this->organizationID;
    }

    function getOrganizationName() {
        return $this->organizationName;
    }

    function getDescription() {
        return $this->description;
    }

    function getAddress() {
        return $this->address;
    }

    function getAddress1() {
        return $this->address1;
    }

    function getState() {
        return $this->state;
    }

    function getPhone() {
        return $this->phone;
    }

    function getCity() {
        return $this->city;
    }

    function getZip() {
        return $this->zip;
    }

    function printAllAttributes() {
        $output = sprintf("Organization Name: %s, Description: %s, Address: %s,
                           Address1: %s, City: %s, State: %s, ZIP: %s.",
                        $this->organizationName, $this->description,
                        $this->address, $this->address1, $this->city,
                        $this->stateName, $this->zip);
        return $output;
    }

}

?>
